<extend name="./Template/Layout/Layout.html" />
<block name="style">
    <style>
        .articleshowa{ cursor:pointer;}
    </style>
</block>
<block name="body">
  <div id="content-main" style="width:100%;">
    <div class="list-box">
      <a href="{:U('Home/Article/Articlewrite')}" class="layui-btn layui-btn-normal mb10">文章添加</a>
      <ul class="list-group">

          <foreach name="list" item="vo" key="k" >
              <li class="list-group-item list_{$vo.id}" id="{$vo.id}">
                  <span class="fr text-btn">
                    <button data-method="setTop" class="articleedit layui-btn layui-btn-sm layui-btn-normal" title="编辑">
                      <i class="layui-icon">&#xe642;</i></button>
                    <button data-method="setdel" class="articledelete layui-btn layui-btn-sm layui-btn-danger" title="删除">
                      <i class="layui-icon">&#xe640;</i></button>
                  </span>
                  <a class="articleshowa" date-href="{:U('Home/Article/ArticleShow',array('id'=>$vo['id']))}">
                      ▪ <span style="color:#999;">【{$vo.columnname}】</span>{$vo.title}<span style="color:#666;padding-left:10px;">{$vo.ttime|fdate=###,'Y-m-d'}</span>
                  </a>
              </li>
          </foreach>

      </ul>
    </div>

    <div class="layui-table-page mb10">
      <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-1">
          {$_page}
      </div>
    </div>

  </div>
</block>
<block name="script">
    <script>
        var editurl = "{:U('Home/Article/ArticleEdit')}";
        var deleteurl = "{:U('Home/Article/ArticleDelete')}";
    </script>
</block>